package com.victor.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户实体类(设置相关信息) --myuser表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "myuser")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Myuser implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private int id;// 主键id

	@Column(name = "userid", length = 50)
	private String userid;// userid

	@Column(name = "user_type", length = 50)
	private String user_type;// 用户类别(0.普通用户,1.vip用户)

	@Column(name = "onoff_parent", length = 50, columnDefinition = "varchar(50) default '0'")//开关默认为关
	private String onoff_parent;// 是否需要家长验证开关(0.关,1.开)

	@Column(name = "onoff_usetime", length = 50, columnDefinition = "varchar(50) default '0'")//开关默认为关
	private String onoff_usetime;// 每次使用时长开关(0.关,1.开)

	@Column(name = "usetime", length = 50)
	private String usetime;// 每次使用时长时间

	@Column(name = "onoff_restinterval", length = 50, columnDefinition = "varchar(50) default '0'")//开关默认为关
	private String onoff_restinterval;// 休息间隔开关(0.关,1.开)

	@Column(name = "restinterval", length = 50)
	private String restinterval;// 休息间隔时间

	@Column(name = "onoff_notusetime", length = 50, columnDefinition = "varchar(50) default '0'")//开关默认为关
	private String onoff_notusetime;// 禁用时间开关(0.关,1.开)

	@Column(name = "notusetime_start", length = 50)
	private String notusetime_start; // 禁用时间开始时间

	@Column(name = "notusetime_end", length = 50)
	private String notusetime_end; // 禁用时间结束时间
}
